/*
 * 系统配置接口
 * @Description: jishupu-admin-template
 * @Author: 技术铺<jishupu@qq.com>
 * @Date: 2021-11-15
 */

import request from '@/utils/request'

/**
 * 查看
 * @param {Object} extendConfig
 * @returns new Promise
 */
export function show(extendConfig) {
  return request.get('/v1/config', extendConfig)
}

/**
 * 修改
 * @param {Object} params
 * @param {Object} extendConfig
 * @returns  new Promise
 */
export function update(params, extendConfig) {
  return request.patch(`/v1/config`, params, extendConfig)
}

/**
 * 获取站点配置信息
 * @param {Object} extendConfig
 * @returns  new Promise
 */
export function getSiteConfig(extendConfig) {
  return request.get('/v1/config/site-config', extendConfig)
}
